package org.zhouhe.web.tag.function;

public class PanelResetFunction {
	private String funName;
	public PanelResetFunction(String funName) {
		this.funName = funName;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\r\n  function "+ funName +"(btn){");
		sb.append("\r\n    $(btn).closest('form').get(0).reset();");
		sb.append("\r\n    ");
		sb.append("\r\n  }");
		return sb.toString();
	}
}
